package com.lishe.base.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * 标    题：
 * 功能描述：
 * 作    者：zouxx
 * 创建时间：2018/8/24
 */

public class GridViewInRecyclerView extends GridView {
    public GridViewInRecyclerView(Context context) {
        super(context);
    }

    public GridViewInRecyclerView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public GridViewInRecyclerView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }
}
